import instance from "@/utils/requestAxios";



let brandApi ={

    /*分页查询*/
    search(searchForm){
     return  instance.get("brand",{ params:searchForm })

    },

    /*根据id查询*/
    searchById(id){
        return instance.get(`brand/${id}`)
    },

    /*删除*/
    deleById(id){
        return instance.delete(`brand/del/${id}`)
    },

    deleByIds(ids){
        return instance.delete(`brand/dels/${ids}`)
    },


    /*修改*/
    update(formDate){
        return instance.put(`brand`,formDate)
    },


    /*添加*/
    inster(formDate){
        return instance.post(`brand`,formDate)
    }
}

export default brandApi